<select name="{name}"{onchange}>
<?php
foreach ($items as $item)
{
	if ($item->{IMAGE_IMAGE_ID}==$value)
		$sel = " selected";
	else
		$sel = "";
	echo "<option value='".$item->{IMAGE_IMAGE_ID}."'".$sel.">".$item->{IMAGE_NAME}."</option>\n";
}
?>
</select>